package com.blb.exam.common.entity;


import com.blb.exam.common.util.DBField;

import java.time.LocalDateTime;

public class ExamRecord {

  private long id;
  @DBField(fieldName = "user_id")
  private long userId;
  @DBField(fieldName = "quetion_set_id")
  private long quetionSetId;
  @DBField(fieldName = "exam_date")
  private LocalDateTime examDate;
  private long point;

  @DBField(fieldName = "quetion_set_title")
  private String quetionSetTitle;

  private String username;

  public String getUsername() {
    return username;
  }

  public void setUsername(String username) {
    this.username = username;
  }

  public String getQuetionSetTitle() {
    return quetionSetTitle;
  }

  public void setQuetionSetTitle(String quetionSetTitle) {
    this.quetionSetTitle = quetionSetTitle;
  }

  public long getId() {
    return id;
  }

  public void setId(long id) {
    this.id = id;
  }


  public long getUserId() {
    return userId;
  }

  public void setUserId(long userId) {
    this.userId = userId;
  }


  public long getQuetionSetId() {
    return quetionSetId;
  }

  public void setQuetionSetId(long quetionSetId) {
    this.quetionSetId = quetionSetId;
  }


  public LocalDateTime getExamDate() {
    return examDate;
  }

  public void setExamDate(LocalDateTime examDate) {
    this.examDate = examDate;
  }


  public long getPoint() {
    return point;
  }

  public void setPoint(long point) {
    this.point = point;
  }

  @Override
  public String toString() {
    return "ExamRecord{" +
            "id=" + id +
            ", userId=" + userId +
            ", quetionSetId=" + quetionSetId +
            ", examDate=" + examDate +
            ", point=" + point +
            ", quetionSetTitle='" + quetionSetTitle + '\'' +
            ", username='" + username + '\'' +
            '}';
  }
}
